package com.wanmait.recruit.mapper;

import com.wanmait.recruit.pojo.Resume;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ResumeMapper {
    Resume selectOneByPerosnId(Integer id);
    int deleteByPrimaryKey(Integer id);

    int insert(Resume record);

    int insertSelective(Resume record);

    Resume selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Resume record);

    int updateByPrimaryKey(Resume record);

    Resume selectByResumeId(Integer id);

    int updateAdvantages(@Param("id") Integer id, @Param("advantages") String advantages);

    int insertAdvantages(@Param("id") Integer id, @Param("advantages") String advantages);

    int updateCredentials(@Param("id") Integer id, @Param("credentials") String credentials);

    int insertCredentials(@Param("personId") Integer personId, @Param("credentials") String credentials);

    List<Resume> selectAllByPersonId(Integer personId);


    Integer findNewId();

}